import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';

class AppRouterInformationParser extends RouteInformationParser<String> {
  @override
  Future<String> parseRouteInformation(RouteInformation routeInformation) {
    return SynchronousFuture(routeInformation.location);
  }

  @override
  RouteInformation restoreRouteInformation(configuration) {
    return super.restoreRouteInformation(configuration);
  }
}
